<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::move类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1move.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classmets_1_1move-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::move类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__model.html">Model</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Move to be operated on a feasible solution.  
 <a href="classmets_1_1move.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="model_8hh_source.html">model.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::move 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1move.png" usemap="#mets::move_map" alt=""/>
  <map id="mets::move_map" name="mets::move_map">
<area href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list." alt="mets::mana_move" shape="rect" coords="183,56,539,80"/>
<area href="classpcl_1_1_global_hypotheses_verification_1_1move.html" alt="pcl::GlobalHypothesesVerification&lt; ModelT, SceneT &gt;::move" shape="rect" coords="549,56,905,80"/>
<area href="classmets_1_1invert__subsequence.html" title="A mets::mana_move that swaps a subsequence of elements in a mets::permutation_problem." alt="mets::invert_subsequence" shape="rect" coords="0,112,356,136"/>
<area href="classmets_1_1swap__elements.html" title="A mets::mana_move that swaps two elements in a mets::permutation_problem." alt="mets::swap_elements" shape="rect" coords="366,112,722,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a69c917e66e3f48d7df0136b6942a2476"><td class="memItemLeft" align="right" valign="top">virtual gol_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move.html#a69c917e66e3f48d7df0136b6942a2476">evaluate</a> (const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;sol) const =0</td></tr>
<tr class="memdesc:a69c917e66e3f48d7df0136b6942a2476"><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluate the cost after the move.  <a href="classmets_1_1move.html#a69c917e66e3f48d7df0136b6942a2476">更多...</a><br /></td></tr>
<tr class="separator:a69c917e66e3f48d7df0136b6942a2476"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae80d24a084cd9a3841007f1e88c5ea12"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1move.html#ae80d24a084cd9a3841007f1e88c5ea12">apply</a> (<a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;sol) const =0</td></tr>
<tr class="memdesc:ae80d24a084cd9a3841007f1e88c5ea12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Operates this move on sol.  <a href="classmets_1_1move.html#ae80d24a084cd9a3841007f1e88c5ea12">更多...</a><br /></td></tr>
<tr class="separator:ae80d24a084cd9a3841007f1e88c5ea12"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Move to be operated on a feasible solution. </p>
<p>You must implement this (one or more types are allowed) for your problem.</p>
<p>You must provide an apply as well as an evaluate method.</p>
<p>NOTE: this interface changed from 0.4.x to 0.5.x. The change was needed to provide a more general interface. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ae80d24a084cd9a3841007f1e88c5ea12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae80d24a084cd9a3841007f1e88c5ea12">&#9670;&nbsp;</a></span>apply()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void mets::move::apply </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>sol</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Operates this move on sol. </p>
<p>This should actually change the solution. </p>

<p>在 <a class="el" href="classmets_1_1invert__subsequence.html#ade3c72591bca9042b637fe99c51bc97b">mets::invert_subsequence</a>, <a class="el" href="classmets_1_1swap__elements.html#a2dc625e7f5b1557c118f79e7ac521485">mets::swap_elements</a> , 以及 <a class="el" href="classpcl_1_1_global_hypotheses_verification_1_1move.html#a73a308f1cdb73cdf4a546a9860f76bff">pcl::GlobalHypothesesVerification&lt; ModelT, SceneT &gt;::move</a> 内被实现.</p>

</div>
</div>
<a id="a69c917e66e3f48d7df0136b6942a2476"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69c917e66e3f48d7df0136b6942a2476">&#9670;&nbsp;</a></span>evaluate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual gol_type mets::move::evaluate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>sol</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Evaluate the cost after the move. </p>
<p>What if we make this move? Local searches can be speed up by a substantial amount if we are able to efficiently evaluate the cost of the neighboring solutions without actually changing the solution. </p>

<p>在 <a class="el" href="classmets_1_1invert__subsequence.html#ad64ffab62633cc4b43903eb3bfe5e328">mets::invert_subsequence</a>, <a class="el" href="classmets_1_1swap__elements.html#abc881d41079ab026f69411a05db183e2">mets::swap_elements</a> , 以及 <a class="el" href="classpcl_1_1_global_hypotheses_verification_1_1move.html#aecacc333c56ce1da7d50ec4d0f38175e">pcl::GlobalHypothesesVerification&lt; ModelT, SceneT &gt;::move</a> 内被实现.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="model_8hh_source.html">model.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1move.html">move</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
